qinglan.Canvas.FsmManager = qinglan.Canvas.Class(function(isInit) {
	
	this.fsmList = {};

}).methods({
	addFsm: function(fsms){
		qinglan.Type.isArray(fsms) ? qinglan.Array.each(fsms,function(fsm){
			this.fsmList[fsm.id] = fsm;
		},this) : (this.fsmList[fsms.id] = fsms);
	},
	getFsm: function(fsmid){
		return this.fsmList[fsmid];
	}
});
